import {http} from '@/libs/httpRequest';

// 表格数据
export function getList (params) {
  return http({
    url: '/admin/generator/list',
    method: 'get',
    params: params
  })
}
//获取表
export function selectTables (params) {
  return http({
    url: '/admin/generator/selectTables',
    method: 'get',
    params: params
  })
}
// 表字段
export function getColumns (params) {
  return http({
    url: '/admin/generator/getColumns',
    method: 'get',
    params: params
  })
}

export function genCode (tableNames){

  // window.open("http://7.2.79.16:18095/admin/generator/code?tableNames=" + tableNames);
  window.open("http://localhost:8081/admin/generator/code?tableNames=" + tableNames);
}
